import axios from '@/utils/request';

export enum VerifyCodePurpose {
	'Register' = 'register',
	'ChangeMobile' = 'changemobile',
	'MobileLogin' = 'mobilelogin'
}

/**
 * 短信发送验证码
 * 
 * @param {string} mobile 手机号码
 * @param {VerifyCodePurpose} event 验证码类型
 * @return {Promise<any>}
 */
export function sendSmsVerificationCode(mobile : string, event : string) : Promise<any> {
	return axios.post('/api/sms/send', { mobile, event })
}

/**
 * 联系我们
 * @return {Promise<any>}
 */
export function apiGetContactus() : Promise<any> {
	return axios.post('/api/home/contactus')
}



export function getBannerList() : Promise<any> {
	return axios.post('/api/banner/lists')
}